To connect to your Bluetooth headset, follow these steps:
1. As shown in the picture, we click on the "app" icon inside and open it in detail as follows.
2. Furthermore, we click on the "Set" icon to open the entry.
3. Select "Connect" and then click "Bluetooth".
4. After entering we need to turn on the "Bluetooth" function, and then we connect the Bluetooth headset.
Android headset line control details, Bluetooth headset button monitoring (similar to cool dog line control effect)
When the media button of the headset is clicked, the Android system sends a broadcast. The broadcast carries an Intent with the Action MEDIA_BUTTON. After lis
Control music playback with headphone cable
1, the main function of a few keys, but also we commonly used include the volume Plus, play/pause keys, volume reduction keys,
2, all the volume on the Apple phone can be controlled by the volume key above, including the addition and subtraction in the control and the next to the Apple phone volume plus and minus is the same effect, as follows.
3, click the
Customer requirements
After the headset is pulled out during FM playback, The FM app displays a prompt box Indicating "unplug the headset and stop the FM", and then automatically close
Modify fmradioservice. Java1. Add the following import to display the toast
/// AAAAA add start
Import Android. widget. Toast;
/// AAAAA add endpublic class fmradioservice extends
After the customer asks the FM to unplug the headset during playback, the fm app displays a prompt box Indicating "unplug the headset and stop the Fm", and then automatically closes
Modify FMRadioService. java1. Add the following import to display the toast/// AAAAA add startImport android. widget. Toast;/// AAAAA add endPublic class FMRadioService extends Servic
What is Bluetooth?
Bluetooth is the origin of the Tenth century unification of Denmark and Norway's Nordic Viking king Harald Bluetooth, because the king likes to eat blueberries, gums are blue every day, so called Bluetooth. Modern Bluetooth technology is developed by Ili Xin (Ericsson) A short-range wireless interface, and in 1998 with IBM, Intel, Nokia, Toshiba Five manufacturers set up Bluetooth SIG Bluetooth alliance (Bluetooth Special Interest Group). And the main three features of Blueto
how Android listens for key events on a Bluetooth headsetWrite in front:Directly want the code very easy, you can directly pull the scroll bar to the bottom to be able to see. If you want to understand why, then follow the steps I have planned to understand. The following test environment with "Bluedio + red rice mobile phone"on hand.1. Use of Bluetooth headsetThe use manual of Bluetooth
Click to view the highlighted solution directly.Finding a laptop with this newly bought headset has a slight current of one months ago. It belongs to the kind of quiet, but can hear the sound, knocking on the keyboard or when placing a water cup if a slight vibration, there is a variety of current fluctuations, a rumble, and finally collapsed. Dick Silk can not afford to buy a computer-specific headphones, only make a
Headset Contact Bad clean headphone hole step
Clean headphone Holes
Step one: Use cotton stick to drink alcohol, squeeze clean, not too wet, put the cotton stick into the headphone hole to turn and pull out, repeated several times. Be careful not to break the cotton sticks too hard.
Step two: or with a hair dryer, on the headphone mouth away from the far point of blowing
Step three: After cleaning, plug in the
for Airpods
For Airpods headphones, all you have to do is put the headphones back in the charging box, and you can listen to music for 3 hours in 15 minutes. The box has a battery that can provide 24-hour endurance for headphones. If you want to charge the box, you only need to connect the lighting cable to the USB port on the other end.
Personalized Airpods Features
Airpods has many features that can be turned off on the iphone's Airpods app, and maybe you can also change the double-click
Example of headset plugging and audio channel switching for Android underlying development
Example of headset plugging and audio channel switching for Android underlying development
Because the headset is separated by the headset
The example in this article describes the Android implementation method for adding headphones status icons. Share to everyone for your reference. Specifically as follows:
The original eco-Android system is not indicated by a headset insert or insert status, this article explains how to add a headset insert status indi
-> state_on;
Switch_data_headset-> state_off = pdata_headset-> state_off;
Switch_data_headset-> SDEV. print_state = switch_headset_print_state;
Info-> psw_data_headset = switch_data_headset;
Ret = switch_dev_register ( switch_data_headset-> SDEV );
In the/sys/class/switch directory, the h2w sub-directory will be generated, with some members such as State and name, and the driver will determine whether the headset is inserted through
Gpio simulates the
AudioManager has the following method:
IsWiredHeadsetOn ();
If the headset is inserted, true is returned; otherwise, false is returned;
Of course, you must add a permission. Otherwise, false is always returned.
I started to catch up with the source code for a long time. I found the process of real-time detecting the insertion and removal of headphones, but it is not very helpful for me.
Real-time Monitoring of hea
AudioManager has the following method:IsWiredHeadsetOn ();If the headset is inserted, true is returned; otherwise, false is returned;Of course, you must add a permission. Otherwise, false is always returned.I started to catch up with the source code for a long time. I found the process of real-time detecting the insertion and removal of headphones, but it is not very helpful for me.Real-time Monitoring of headset
AndroidIn fact, the code of the headset detection is rarely changed.
This is because there are few documents.
It took nearly two months.
The driver has three implementation versions:
First, drivers/Char/micco_hsdetect.cIt reports the status to the user space through kobject_uevent.
Second: Drivers/input/keyboard/micco_keys.cIt reports events to the user space through input_report_switch.
Third: Drivers/switch/switch_micco.cRegistered a switch_dev, whi
Android automatically exits the FM Radio application when the flight mode is enabled and the headset is pulled out.
The FM radio needs to be inserted into the headset as an antenna, and automatically exits when the headset is pulled out.
1. First add the prompt string
Mediatek/packages/apps/FMRadio/res/values/strings.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.